package it.koutifaris.travianmap.view.serversview;

import android.view.Menu;
import android.view.MenuItem.OnMenuItemClickListener;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ListView;

public interface ServersView {

	ListView getListView();

	ServersViewItem newViewItem(ViewGroup parent, View convertView);

	void setAddServerMenuItemClickHandler(Menu menu, OnMenuItemClickListener clickListener);

	interface ServersViewItem {

		void setLabel(String label);

		void setDeleteClickHandler(OnClickListener clickListener);

		View getView();

	}
}
